<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @keyframes dong-hua{
            
            0%{
                transition: all 1s;
                background: linear-gradient(
                rgba(255, 121, 121, 0.5),
                rgb(131, 65, 65),
                rgb(0, 0, 0)
            );
            }
            50%{
                transition: all 1s;
                background: linear-gradient(
                rgba(255, 0, 0, 0.5),
                rgb(255, 255, 255),
                rgb(0, 0, 0)
            );
            }
            100%{
                transition: all 1s;
                background: linear-gradient(
                rgba(0, 0, 0, 0.5),
                rgb(0, 0, 0),
                rgb(0, 0, 0)
            );
            }
            
        }
        div{
            width: 200px;
            height: 200px;
            background-color: antiquewhite;
            transition: all 1s;
        }
        div:hover{
            animation: dong-hua 1s linear;
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>